<template>
  <div>
    <div id="box">
      <div id="head">
        <span></span>
        <span>月产值</span>
        <span>月燃油比</span>
        <span>工资开支</span>
        <span>保养维修</span>
        <span>燃油比</span>
        <span>顶班费</span>
        <span>管理费</span>
        <span>总费用</span>
        <span>月利润</span>
      </div>
      <div id="mian">
        <ul v-for="(item,i) in tableData">
          <li>
            <span style="text-align: center;">{{item.id}}</span>
            <span>¥{{item.outputValue}}</span>
            <span>¥{{item.fuel}}</span>
            <span>¥{{item.wages}}</span>
            <span>¥{{item.maintain}}</span>
            <span>¥{{item.fuelRtio}}</span>
            <span>¥{{item.management}}</span>
            <span>¥{{item.shift}}</span>
            <span>¥{{item.totalCost}}</span>
            <span>¥{{item.profit}}</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        tableData: [{
            id: '1',
            outputValue: '29575',
            fuel: '3000',
            wages: '29575',
            maintain: '29575',
            fuelRtio: '29575',
            shift: '29575',
            management: '29575',
            totalCost: '29575',
            profit: '29575'
          },
          {
            id: '2',
            outputValue: '29575',
            fuel: '3000',
            wages: '29575',
            maintain: '29575',
            fuelRtio: '29575',
            shift: '29575',
            management: '29575',
            totalCost: '29575',
            profit: '29575'
          }
        ]
      }
    },

    mespanods: {

    }
  }
</script>

<style scoped lang="less">
  #box {
   overflow:scroll;

    #head {
      width: 790px;
      display: flex;
      justify-content: space-between;

      span {
        display: inline-block;
        width: 80px;
        color: #333333;
        font-size: 15px;
        text-align: center;
      }

    }

    #mian {
      display: flex;
      flex-direction: column;

      ul li {
        display: flex;
        justify-content: space-between;
        width: 790px;
        height: 73px;
        border-radius: 8px;
        background-color: #FFFFFF;
        font-size: 15px;
        margin-top: 15px;

        span {
          display: inline-block;
          width: 80px;
          text-align:left;
          line-height: 73px;
        }
      }
    }
  }
</style>
